package org.example.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author TonySong
 * @date 2025/7/28 0028
 * @time 16:29
 */
public class Movie implements Serializable {

    private int id;
    private String name;
    private String actor;
    private String direction;
    private MovieType type;
    private Integer price;
    private String playTime;
    //todo: get set toStirng
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public MovieType getType() {
        return type;
    }

    public void setType(MovieType type) {
        this.type = type;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getPlayTime() {
        return playTime;
    }

    public void setPlayTime(String playTime) {
        this.playTime = playTime;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", actor='" + actor + '\'' +
                ", direction='" + direction + '\'' +
                ", type=" + type +
                ", price=" + price +
                ", playTime='" + playTime + '\'' +
                '}';
    }
}
